//
//  XMDemoViewController.m
//  Pods-XMPrivatelyLib_Example
//
//  Created by X-MEN on 2020/8/14.
//

#import "XMDemoViewController.h"
#import <MJExtension/MJExtension.h>
#import "NSBundle+XMBundle.h"


@interface XMDemoViewController ()

@end

@implementation XMDemoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}

+ (XMDemoModel *)getModel {
    NSDictionary *dict = @{@"name":@"zhangsan"};
   return  [XMDemoModel mj_objectWithKeyValues:dict];
}

+ (UIImageView *)initImageView {
    
//   NSString *path = [[NSBundle xmGetBundle] pathForResource:@"event-bookVisit-imageBg@2x" ofType:@"png"];
//    UIImage *image = [UIImage imageWithContentsOfFile:path];
//    return [[UIImageView alloc] initWithImage:image];
    
    UIImage *image= [UIImage imageNamed:@"event-bookVisit-imageBg@2x" inBundle:[NSBundle xmGetBundle] compatibleWithTraitCollection:nil];
    return [[UIImageView alloc] initWithImage:image];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
